<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */

require_once('com/fabriciojf/action/Action.class.php');
require_once('com/fabriciojf/persistence/ConfigDAO.class.php');

class UserCreateAction implements Action {
    public function execute() {
        $configDao = new ConfigDAO();
        if ($configDao->getRegistro('habilitarconta')->getValor() == 'true') {
            require_once('com/fabriciojf/view/UserCreate.php');
        } else {
            FrontController::sendRedirect('Home');
        }
    }
}
?>
